﻿@using Eksponent.RazorRocks.Umbraco;
@using umbraco.MacroEngines;
@{    
    
    var node = RazorRocks.TemplateNode;
    var children = node.GetChildrenAsList.Items;    
 }

<li><a href="@node.NiceUrl">@node.Name</a>
    @if (children != null && children.Any() )
    {
        <ul>
            @foreach (DynamicNode child in children)
            {
                @child.Render("Menu");
            }
        </ul>   
    } 
</li>